package iosr11.data;

public enum MarkKind {
	PROJECT,		// 1
	EXAM,			// 2
	FINAL,			// 3
	CREDIT;			// 4
	
	static int returnInt(MarkKind kind){
		if (kind == PROJECT) return 1;
		else if (kind == EXAM) return 2;
		else if (kind == FINAL) return 3;
		else return 4; // CREDIT
	}
	
	static MarkKind returnMarkKind(int i){
		if (i==1) return PROJECT;
		else if (i==2) return EXAM;
		else if (i==3) return FINAL;
		else return CREDIT; // 4
	}
}
